package com.dianning.web.action;

import org.apache.commons.logging.*;
import com.dianning.bean.Visitor;
import com.dianning.fio.AvatarUploadFile;
import com.dianning.fio.IdCardUploadFile;
import com.dianning.fio.InfoPicUploadFile;
import com.dianning.service.VisitorService;

public class InfoPic extends BaseAction{

	private static final Log logger = LogFactory.getLog(InfoPic.class);

	private InfoPicUploadFile infoPicUploadFile;

	public InfoPicUploadFile getInfoPicUploadFile() {
		return infoPicUploadFile;
	}

	public void setInfoPicUploadFile(InfoPicUploadFile infoPicUploadFile) {
		this.infoPicUploadFile = infoPicUploadFile;
	}
	
	private long id;
	private long uid;
	private String size;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getSize() {
		return size;
	}

	public void setSize(String size) {
		this.size = size;
	}

	public long getUid() {
		return uid;
	}

	public void setUid(long uid) {
		this.uid = uid;
	}
	
	private String tourl;

	public String getTourl() {
		return tourl;
	}

	public void setTourl(String tourl) {
		this.tourl = tourl;
	}
	
	public String execute() {
		this.setTourl(this.getInfoPicUploadFile().findAvatar(this.id, this.uid, this.size));
		return SUCCESS;
	}




}
